import { Body, Controller, Get, Header, Post,Req } from '@nestjs/common'
import { AppService } from './app.service'
import { Request } from 'express';



@Controller('/hello')
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  @Header('Cache-Control', 'none')
  postHello(@Body()List:Object): string {
    return this.appService.postHello(List)
  }


  // @Post()
  // postHello(@Req() request: Request): string {
  //   return this.appService.postHello(request)
  // }
}
